FROM alpine:3.17.1 as builder
COPY Dockerfile_sh_script.sh /Dockerfile_sh_script.sh
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN /bin/sh /Dockerfile_sh_script.sh

FROM alpine:3.17.1
COPY --from=builder  /cephalopod-app  /cephalopod-app
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN /sbin/apk --no-cache add php81 php81-openssl
